#include "shmem.h"
#include <stdio.h>
dp_date *p;
int main(int argc, char const *argv[])
{
    struct shm_param para;
    // dp_date *p;
    
    shm_init( &para, "666", 328);
    p=shm_getaddr(&para);
    p->st[0].type=2;
    p->st[0].value.val_int=1;
    shm_write(&para, p, sizeof(*p));
  //  shm_del(&para);
    return 0;
}
